# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pyexcel-io
_pkgname=pyexcel-io
pkgver=0.6.7
pkgrel=1
pkgdesc='A python library to read and write structured data in csv, zipped csvformat and to/from databases.'
arch=('any')
url='https://pypi.org/project/pyexcel-io/#files'
license=('BSD')
depends=('python' 'python-lml')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('ffb0981bf1c9b7ef32360229432098129a40815c998f7b1aec3fe86038113f9895840a1fced2fa0578130d71da586c0e6531832fefb9a3ba0fc786f7ec324e47')

prepare() {
  cd "$_pkgname-$pkgver"

  sed -i 's|lml==0.0.1|lml|g' setup.py
}

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

